home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Snippets / QD3D Juggler / Juggler Sources / QD3D Error Codes.r < prev    next >
Encoding:
Text File  |  1995-12-27  |  12.4 KB  |  522 lines  |  [TEXT/CWIE]

  1. /* QD3D Error Codes.r */
  2.  
  3. #define systemSevenOrLater 1
  4. #include "Types.r"
  5.  
  6. // The OS Error type. The ID of each resource refers to the 
  7. // OSErr that it describes.
  8. type 'Estr' {    /* defined just like a 'STR ' */
  9.     pstring;
  10. };
  11.  
  12. /* The error strings corresponding to QD3DErrors.h */
  13.  
  14. /* ************** */
  15. /* *** Errors *** */
  16. /* ************** */
  17. resource 'Estr' (-28500, purgeable) {
  18.     "kQ3ErrorInternalError"
  19. };
  20. resource 'Estr' (-28500+1, purgeable) {
  21.     "kQ3ErrorNoRecovery"
  22. };
  23. resource 'Estr' (-28500+2, purgeable) {
  24.     "kQ3ErrorLastFatalError"
  25. };
  26.     /* System Errors */
  27. resource 'Estr' (-28490, purgeable) {
  28.     "kQ3ErrorNotInitialized"
  29. };
  30. resource 'Estr' (-28490+1, purgeable) {
  31.     "kQ3ErrorAlreadyInitialized"
  32. };
  33. resource 'Estr' (-28490+2, purgeable) {
  34.     "kQ3ErrorUnimplemented"
  35. };
  36. resource 'Estr' (-28490+3, purgeable) {
  37.     "kQ3ErrorRegistrationFailed"
  38. };
  39.     /* OS Errors */
  40. resource 'Estr' (-28490+4, purgeable) {
  41.     "kQ3ErrorUnixError"
  42. };
  43. resource 'Estr' (-28490+5, purgeable) {
  44.     "kQ3ErrorMacintoshError"
  45. };
  46. resource 'Estr' (-28490+6, purgeable) {
  47.     "kQ3ErrorX11Error"
  48. };
  49.     /* Memory Errors */
  50. resource 'Estr' (-28490+7, purgeable) {
  51.     "kQ3ErrorMemoryLeak"
  52. };
  53. resource 'Estr' (-28490+8, purgeable) {
  54.     "kQ3ErrorOutOfMemory"
  55. };
  56.     /* Parameter errors */
  57. resource 'Estr' (-28490+9, purgeable) {
  58.     "kQ3ErrorNULLParameter"
  59. };
  60. resource 'Estr' (-28490+10, purgeable) {
  61.     "kQ3ErrorParameterOutOfRange"
  62. };
  63. resource 'Estr' (-28490+11, purgeable) {
  64.     "kQ3ErrorInvalidParameter"
  65. };            
  66. resource 'Estr' (-28490+12, purgeable) {
  67.     "kQ3ErrorInvalidData"
  68. };                
  69. resource 'Estr' (-28490+13, purgeable) {
  70.     "kQ3ErrorAcceleratorAlreadySet"
  71. };        
  72. resource 'Estr' (-28490+14, purgeable) {
  73.     "kQ3ErrorVector3DNotUnitLength"
  74. };
  75. resource 'Estr' (-28490+15, purgeable) {
  76.     "kQ3ErrorVector3DZeroLength"
  77. };
  78.     /* Object Errors */
  79. resource 'Estr' (-28490+16, purgeable) {
  80.     "kQ3ErrorInvalidObject"
  81. };
  82. resource 'Estr' (-28490+17, purgeable) {
  83.     "kQ3ErrorInvalidObjectClass"
  84. };
  85. resource 'Estr' (-28490+18, purgeable) {
  86.     "kQ3ErrorInvalidObjectType"
  87. };
  88. resource 'Estr' (-28490+19, purgeable) {
  89.     "kQ3ErrorInvalidObjectName"
  90. };
  91. resource 'Estr' (-28490+20, purgeable) {
  92.     "kQ3ErrorObjectClassInUse"
  93. };            
  94. resource 'Estr' (-28490+21, purgeable) {
  95.     "kQ3ErrorAccessRestricted"
  96. };
  97. resource 'Estr' (-28490+22, purgeable) {
  98.     "kQ3ErrorMetaHandlerRequired"
  99. };
  100. resource 'Estr' (-28490+23, purgeable) {
  101.     "kQ3ErrorNeedRequiredMethods"
  102. };
  103. resource 'Estr' (-28490+24, purgeable) {
  104.     "kQ3ErrorNoSubClassType"
  105. };
  106. resource 'Estr' (-28490+25, purgeable) {
  107.     "kQ3ErrorUnknownElementType"
  108. };
  109. resource 'Estr' (-28490+26, purgeable) {
  110.     "kQ3ErrorNotSupported"
  111. };
  112.     /* Extension Errors */
  113. resource 'Estr' (-28490+27, purgeable) {
  114.     "kQ3ErrorNoExtensionsFolder"
  115. };
  116. resource 'Estr' (-28490+28, purgeable) {
  117.     "kQ3ErrorExtensionError"
  118. };
  119. resource 'Estr' (-28490+29, purgeable) {
  120.     "kQ3ErrorPrivateExtensionError"
  121. };
  122.     /* Geometry Errors */
  123. resource 'Estr' (-28490+30, purgeable) {
  124.     "kQ3ErrorDegenerateGeometry"
  125. };
  126. resource 'Estr' (-28490+31, purgeable) {
  127.     "kQ3ErrorGeometryInsufficientNumberOfPoints"
  128. };
  129.     /* IO Errors */
  130. resource 'Estr' (-28490+32, purgeable) {
  131.     "kQ3ErrorNoStorageSetForFile"
  132. };
  133. resource 'Estr' (-28490+33, purgeable) {
  134.     "kQ3ErrorEndOfFile"
  135. };
  136. resource 'Estr' (-28490+34, purgeable) {
  137.     "kQ3ErrorFileCancelled"
  138. };
  139. resource 'Estr' (-28490+35, purgeable) {
  140.     "kQ3ErrorInvalidMetafile"
  141. };
  142.  resource 'Estr' (-28490+36, purgeable) {
  143.     "kQ3ErrorInvalidMetafilePrimitive"
  144. };
  145.  resource 'Estr' (-28490+37, purgeable) {
  146.     "kQ3ErrorInvalidMetafileLabel"
  147. };
  148.  resource 'Estr' (-28490+38, purgeable) {
  149.     "kQ3ErrorInvalidMetafileObject"
  150. };
  151.  resource 'Estr' (-28490+39, purgeable) {
  152.     "kQ3ErrorInvalidMetafileSubObject"
  153. };
  154. resource 'Estr' (-28490+40, purgeable) {
  155.     "kQ3ErrorInvalidSubObjectForObject"
  156. };
  157. resource 'Estr' (-28490+41, purgeable) {
  158.     "kQ3ErrorUnresolvableReference"
  159. };
  160. resource 'Estr' (-28490+42, purgeable) {
  161.     "kQ3ErrorUnknownObject"
  162. };
  163. resource 'Estr' (-28490+43, purgeable) {
  164.     "kQ3ErrorStorageInUse"
  165. };
  166. resource 'Estr' (-28490+44, purgeable) {
  167.     "kQ3ErrorStorageAlreadyOpen"
  168. };
  169. resource 'Estr' (-28490+45, purgeable) {
  170.     "kQ3ErrorStorageNotOpen"
  171. };
  172. resource 'Estr' (-28490+46, purgeable) {
  173.     "kQ3ErrorStorageIsOpen"
  174. };
  175. resource 'Estr' (-28490+47, purgeable) {
  176.     "kQ3ErrorFileAlreadyOpen"
  177. };
  178. resource 'Estr' (-28490+48, purgeable) {
  179.     "kQ3ErrorFileNotOpen"
  180. };
  181. resource 'Estr' (-28490+49, purgeable) {
  182.     "kQ3ErrorFileIsOpen"
  183. };
  184. resource 'Estr' (-28490+50, purgeable) {
  185.     "kQ3ErrorBeginWriteAlreadyCalled"
  186. };
  187. resource 'Estr' (-28490+51, purgeable) {
  188.     "kQ3ErrorBeginWriteNotCalled"
  189. };
  190. resource 'Estr' (-28490+52, purgeable) {
  191.     "kQ3ErrorEndWriteNotCalled"
  192. };
  193. resource 'Estr' (-28490+53, purgeable) {
  194.     "kQ3ErrorReadStateInactive"
  195. };
  196. resource 'Estr' (-28490+54, purgeable) {
  197.     "kQ3ErrorStateUnavailable"
  198. };
  199. resource 'Estr' (-28490+55, purgeable) {
  200.     "kQ3ErrorWriteStateInactive"
  201. };
  202. resource 'Estr' (-28490+56, purgeable) {
  203.     "kQ3ErrorSizeNotLongAligned"
  204. };
  205. resource 'Estr' (-28490+57, purgeable) {
  206.     "kQ3ErrorFileModeRestriction"
  207. };
  208. resource 'Estr' (-28490+58, purgeable) {
  209.     "kQ3ErrorInvalidHexString"
  210. };
  211. resource 'Estr' (-28490+59, purgeable) {
  212.     "kQ3ErrorWroteMoreThanSize"
  213. };
  214. resource 'Estr' (-28490+60, purgeable) {
  215.     "kQ3ErrorWroteLessThanSize"
  216. };
  217. resource 'Estr' (-28490+61, purgeable) {
  218.     "kQ3ErrorReadLessThanSize"
  219. };
  220. resource 'Estr' (-28490+62, purgeable) {
  221.     "kQ3ErrorReadMoreThanSize"
  222. };
  223. resource 'Estr' (-28490+63, purgeable) {
  224.     "kQ3ErrorNoBeginGroup"
  225. };
  226. resource 'Estr' (-28490+64, purgeable) {
  227.     "kQ3ErrorSizeMismatch"
  228. };
  229. resource 'Estr' (-28490+65, purgeable) {
  230.     "kQ3ErrorStringExceedsMaximumLength"
  231. };
  232. resource 'Estr' (-28490+66, purgeable) {
  233.     "kQ3ErrorValueExceedsMaximumSize"
  234. };
  235. resource 'Estr' (-28490+67, purgeable) {
  236.     "kQ3ErrorNonUniqueLabel"
  237. };
  238. resource 'Estr' (-28490+68, purgeable) {
  239.     "kQ3ErrorEndOfContainer"
  240. };
  241. resource 'Estr' (-28490+69, purgeable) {
  242.     "kQ3ErrorUnmatchedEndGroup"
  243. };
  244. resource 'Estr' (-28490+70, purgeable) {
  245.     "kQ3ErrorFileVersionExists"
  246. };
  247.     /* View errors */
  248. resource 'Estr' (-28490+71, purgeable) {
  249.     "kQ3ErrorViewNotStarted"
  250. };
  251. resource 'Estr' (-28490+72, purgeable) {
  252.     "kQ3ErrorViewIsStarted"
  253. };
  254. resource 'Estr' (-28490+73, purgeable) {
  255.     "kQ3ErrorRendererNotSet"
  256. };
  257. resource 'Estr' (-28490+74, purgeable) {
  258.     "kQ3ErrorRenderingIsActive"
  259. };
  260. resource 'Estr' (-28490+75, purgeable) {
  261.     "kQ3ErrorImmediateModeUnderflow"
  262. };
  263. resource 'Estr' (-28490+76, purgeable) {
  264.     "kQ3ErrorDisplayNotSet"
  265. };
  266. resource 'Estr' (-28490+77, purgeable) {
  267.     "kQ3ErrorCameraNotSet"
  268. };
  269. resource 'Estr' (-28490+78, purgeable) {
  270.     "kQ3ErrorDrawContextNotSet"
  271. };
  272. resource 'Estr' (-28490+79, purgeable) {
  273.     "kQ3ErrorNonInvertibleMatrix"
  274. };
  275. resource 'Estr' (-28490+80, purgeable) {
  276.     "kQ3ErrorRenderingNotStarted"
  277. };
  278. resource 'Estr' (-28490+81, purgeable) {
  279.     "kQ3ErrorPickingNotStarted"
  280. };
  281. resource 'Estr' (-28490+82, purgeable) {
  282.     "kQ3ErrorBoundsNotStarted"
  283. };
  284. resource 'Estr' (-28490+83, purgeable) {
  285.     "kQ3ErrorDataNotAvailable"
  286. };
  287. resource 'Estr' (-28490+84, purgeable) {
  288.     "kQ3ErrorNothingToPop"
  289. };
  290.     /* Renderer Errors */
  291. resource 'Estr' (-28490+85, purgeable) {
  292.     "kQ3ErrorUnknownStudioType"
  293. };            
  294. resource 'Estr' (-28490+86, purgeable) {
  295.     "kQ3ErrorAlreadyRendering"
  296. };
  297. resource 'Estr' (-28490+87, purgeable) {
  298.     "kQ3ErrorStartGroupRange"
  299. };
  300. resource 'Estr' (-28490+88, purgeable) {
  301.     "kQ3ErrorUnsupportedGeometryType"
  302. };
  303. resource 'Estr' (-28490+89, purgeable) {
  304.     "kQ3ErrorInvalidGeometryType"
  305. };
  306. resource 'Estr' (-28490+90, purgeable) {
  307.     "kQ3ErrorUnsupportedFunctionality"
  308. };
  309.     /* Group Errors */
  310. resource 'Estr' (-28490+91, purgeable) {
  311.     "kQ3ErrorInvalidPositionForGroup"
  312. };
  313. resource 'Estr' (-28490+92, purgeable) {
  314.     "kQ3ErrorInvalidObjectForGroup"
  315. };
  316. resource 'Estr' (-28490+93, purgeable) {
  317.     "kQ3ErrorInvalidObjectForPosition"
  318. };
  319.     /* Transform Errors */
  320. resource 'Estr' (-28490+94, purgeable) {
  321.     "kQ3ErrorScaleOfZero"
  322. };                
  323.     /* String Errors */
  324. resource 'Estr' (-28490+95, purgeable) {
  325.     "kQ3ErrorBadStringType"
  326. };                
  327.     /* Attribute Errors */
  328. resource 'Estr' (-28490+96, purgeable) {
  329.     "kQ3ErrorAttributeNotContained"
  330. };        
  331. resource 'Estr' (-28490+97, purgeable) {
  332.     "kQ3ErrorAttributeInvalidType"
  333. };        
  334.     /* Camera Errors */
  335. resource 'Estr' (-28490+98, purgeable) {
  336.     "kQ3ErrorInvalidCameraValues"
  337. };        
  338.     /* DrawContext Errors */
  339. resource 'Estr' (-28490+99, purgeable) {
  340.     "kQ3ErrorBadDrawContextType"
  341. };
  342. resource 'Estr' (-28490+100, purgeable) {
  343.     "kQ3ErrorBadDrawContextFlag"
  344. };
  345. resource 'Estr' (-28490+101, purgeable) {
  346.     "kQ3ErrorBadDrawContext"
  347. };
  348. resource 'Estr' (-28490+102, purgeable) {
  349.     "kQ3ErrorUnsupportedPixelDepth"
  350. };
  351.  
  352. /* **************** */
  353. /* *** Warnings *** */
  354. /* **************** */
  355.     /* General System */
  356. resource 'Estr' (-28300, purgeable) {
  357.     "kQ3WarningInternalException"
  358. };    
  359.     /* Object Warnings */
  360. resource 'Estr' (-28300+1, purgeable) {
  361.     "kQ3WarningNoObjectSupportForDuplicateMethod"
  362. };
  363. resource 'Estr' (-28300+2, purgeable) {
  364.     "kQ3WarningNoObjectSupportForDrawMethod"
  365. };
  366. resource 'Estr' (-28300+3, purgeable) {
  367.     "kQ3WarningNoObjectSupportForWriteMethod"
  368. };
  369. resource 'Estr' (-28300+4, purgeable) {
  370.     "kQ3WarningNoObjectSupportForReadMethod"
  371. };
  372. resource 'Estr' (-28300+5, purgeable) {
  373.     "kQ3WarningUnknownElementType"
  374. };
  375. resource 'Estr' (-28300+6, purgeable) {
  376.     "kQ3WarningTypeAndMethodAlreadyDefined"
  377. };
  378. resource 'Estr' (-28300+7, purgeable) {
  379.     "kQ3WarningTypeIsOutOfRange"
  380. };
  381. resource 'Estr' (-28300+8, purgeable) {
  382.     "kQ3WarningTypeHasNotBeenRegistered"
  383. };
  384.     /* Parameter Warnings */
  385. resource 'Estr' (-28300+9, purgeable) {
  386.     "kQ3WarningVector3DNotUnitLength"
  387. };
  388.     /* IO Warnings */
  389. resource 'Estr' (-28300+10, purgeable) {
  390.     "kQ3WarningInvalidSubObjectForObject"
  391. };
  392. resource 'Estr' (-28300+11, purgeable) {
  393.     "kQ3WarningInvalidHexString"
  394. };
  395. resource 'Estr' (-28300+12, purgeable) {
  396.     "kQ3WarningUnknownObject"
  397. };
  398. resource 'Estr' (-28300+13, purgeable) {
  399.     "kQ3WarningInvalidMetafileObject"
  400. };
  401. resource 'Estr' (-28300+14, purgeable) {
  402.     "kQ3WarningUnmatchedBeginGroup"
  403. };
  404. resource 'Estr' (-28300+15, purgeable) {
  405.     "kQ3WarningUnmatchedEndGroup"
  406. };
  407. resource 'Estr' (-28300+16, purgeable) {
  408.     "kQ3WarningInvalidTableOfContents"
  409. };
  410. resource 'Estr' (-28300+17, purgeable) {
  411.     "kQ3WarningUnresolvableReference"
  412. };
  413. resource 'Estr' (-28300+18, purgeable) {
  414.     "kQ3WarningNoAttachMethod"
  415. };
  416. resource 'Estr' (-28300+19, purgeable) {
  417.     "kQ3WarningInconsistentData"
  418. };
  419. resource 'Estr' (-28300+20, purgeable) {
  420.     "kQ3WarningReadLessThanSize"
  421. };
  422. resource 'Estr' (-28300+21, purgeable) {
  423.     "kQ3WarningFilePointerResolutionFailed"
  424. };
  425. resource 'Estr' (-28300+22, purgeable) {
  426.     "kQ3WarningFilePointerRedefined"
  427. };
  428. resource 'Estr' (-28300+23, purgeable) {
  429.     "kQ3WarningStringExceedsMaximumLength"
  430. };
  431.     /* Memory Warnings */
  432. resource 'Estr' (-28300+24, purgeable) {
  433.     "kQ3WarningLowMemory"
  434. };
  435. resource 'Estr' (-28300+25, purgeable) {
  436.     "kQ3WarningPossibleMemoryLeak"
  437. };
  438.     /* View Warnings */
  439. resource 'Estr' (-28300+26, purgeable) {
  440.     "kQ3WarningViewTraversalInProgress"
  441. };
  442. resource 'Estr' (-28300+27, purgeable) {
  443.     "kQ3WarningNonInvertibleMatrix"
  444. };
  445.     /* Quaternion Warning */
  446. resource 'Estr' (-28300+28, purgeable) {
  447.     "kQ3WarningQuaternionEntriesAreZero"
  448. };
  449.     /* Renderer Warning */
  450. resource 'Estr' (-28300+29, purgeable) {
  451.     "kQ3WarningFunctionalityNotSupported"
  452. };
  453.     /* DrawContext Warning */
  454. resource 'Estr' (-28300+30, purgeable) {
  455.     "kQ3WarningInvalidPaneDimensions"
  456. };
  457.     /* Pick Warning */
  458. resource 'Estr' (-28300+31, purgeable) {
  459.     "kQ3WarningPickParamOutside"
  460. };
  461.     /* Scale Warnings */
  462. resource 'Estr' (-28300+32, purgeable) {
  463.     "kQ3WarningScaleEntriesAllZero"
  464. };
  465. resource 'Estr' (-28300+33, purgeable) {
  466.     "kQ3WarningScaleContainsNegativeEntries"
  467. };
  468.     /* Generic Warnings */
  469. resource 'Estr' (-28300+34, purgeable) {
  470.     "kQ3WarningParameterOutOfRange"
  471. };
  472.  
  473. resource 'Estr' (-28100, purgeable) {
  474.     "kQ3NoticeDataAlreadyEmpty"
  475. };
  476.  
  477. /* *************** */
  478. /* *** Notices *** */
  479. /* *************** */
  480.     /* General */
  481. resource 'Estr' (-28100+1, purgeable) {
  482.     "kQ3NoticeMethodNotSupported"
  483. };
  484. resource 'Estr' (-28100+2, purgeable) {
  485.     "kQ3NoticeObjectAlreadySet"
  486. };
  487. resource 'Estr' (-28100+3, purgeable) {
  488.     "kQ3NoticeParameterOutOfRange"
  489. };
  490.     /* IO Notices */
  491. resource 'Estr' (-28100+4, purgeable) {
  492.     "kQ3NoticeFileAliasWasChanged"
  493. };
  494.     /* Geometry */
  495. resource 'Estr' (-28100+5, purgeable) {
  496.     "kQ3NoticeMeshVertexHasNoComponent"
  497. };
  498. resource 'Estr' (-28100+6, purgeable) {
  499.     "kQ3NoticeMeshInvalidVertexFacePair"
  500. };
  501. resource 'Estr' (-28100+7, purgeable) {
  502.     "kQ3NoticeMeshEdgeVertexDoNotCorrespond"
  503. };
  504. resource 'Estr' (-28100+8, purgeable) {
  505.     "kQ3NoticeMeshEdgeIsNotBoundary"
  506. };
  507.     /* Draw Context */
  508. resource 'Estr' (-28100+9, purgeable) {
  509.     "kQ3NoticeDrawContextNotSetUsingInternalDefaults"
  510. };
  511.     /* Lights */
  512. resource 'Estr' (-28100+10, purgeable) {
  513.     "kQ3NoticeInvalidAttenuationTypeUsingInternalDefaults"
  514. };
  515. resource 'Estr' (-28100+11, purgeable) {
  516.     "kQ3NoticeBrightnessGreaterThanOne"
  517. };
  518.     /*  Scale  */
  519. resource 'Estr' (-28100+12, purgeable) {
  520.     "kQ3NoticeScaleContainsZeroEntries"
  521. };
  522.